<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>xilplmi: xplmi.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">xilplmi
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;"
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xplmi_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xplmi.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains the PLMI module register functions. </p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date        Changes
----- ---- -------- -------------------------------------------------------
1.00  kc   02/07/2019 Initial release
1.01  ma   08/01/2019 Added LPD init code
1.02  kc   02/19/2020 Moved code to support PLM banner from PLM app
      bsv  04/04/2020 Code clean up
1.03  bsv  07/07/2020 Made functions used in single transaltion unit as
                                        static
      kc   07/28/2020 Moved LpdInitialized from <a class="el" href="xplmi__debug_8c.html" title="This is the file which contains uart initialization code for the PLM. ">xplmi_debug.c</a> to <a class="el" href="xplmi_8c.html" title="This file contains the PLMI module register functions. ">xplmi.c</a>
      bm   09/08/2020 Added RunTime Configuration Init API to XPlmi_Init
      bm   10/14/2020 Code clean up
      td   10/19/2020 MISRA C Fixes
1.04  bm   10/28/2020 Added ROM Version Print
      har  03/17/2021 Added code for run time initialization of Secure State
                      registers
      ma   03/24/2021 Print early logs
      bm   03/24/2021 Added RTCA initialization for Error Status registers
      har  03/31/2021 Added RTCA initialization for PDI ID
      bsv  04/16/2021 Add provision to store Subsystem Id in XilPlmi
      bm   05/05/2021 Added USR_ACCESS support for PLD0 image
      ma   05/21/2021 Copy secure boot state from PMC GLOBAL GEN STORAGE2
                      register to RTCA Secure State offset
1.05  td   07/08/2021 Fix doxygen warnings
      bsv  07/18/2021 Print PLM banner at the beginning of PLM execution
      bsv  07/24/2021 Clear RTC area at the beginning of PLM
      bsv  08/02/2021 Code clean up to reduce elf size
      rb   07/29/2021 Update reset reason during Init
      ma   08/23/2021 Do not clear Debug Log RTCA memory
      ma   09/13/2021 Set PLM prints log level during RTCA init
      tnt  11/11/2021 Add RTCA initialization for MIO Flush routine
      tnt  12/17/2021 Add RTCA initialization for PL_POR HDIO WA
1.06  bm   07/06/2022 Refactor versal and versal_net code
      kpt  07/19/2022 Added APIs to update or get KAT status from RTC area
      bm   07/22/2022 Update EAM logic for In-Place PLM Update
1.07  ng   11/11/2022 Updated doxygen comments
      kpt  01/04/2023 Added XPlmi_SetFipsKatMask command
      bm   01/14/2023 Remove bypassing of PLM Set Alive during boot
      bm   03/11/2023 Added status check for XPlmi_PreInit
1.08  sk   07/18/2023 Warn out for uart init fail
      sk   07/26/2023 Added redundant check for XPlmi_IsPlmUpdateDone
      dd   09/12/2023 MISRA-C violation Rule 10.3 fixed
1.09  ma   10/10/2023 Enable Slave Error for PSM_GLOBAL
      ng   01/28/2024 optimized u8 variables
      sk   02/18/2024 Added DDRMC Calib Check Status RTCA Register Init
      ng   03/20/2024 Added print to UART on log buffer full after LPD init
1.10  sk   06/05/2024 Added code to populate PLM version in RTCA Reg
      mss  06/13/2024 Added timestamp banner conditionally
      bm   07/15/2024 Fixed timestamp print in banner
1.11  sk   02/20/2025 Added EAM error config in LPDSLCR for Versal 2VE
                      and 2VM Devices</pre><pre></pre><dl class="section note"><dt>Note</dt><dd></dd></dl>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0a5441022583a43e3fc046059c9e7469"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#ga0a5441022583a43e3fc046059c9e7469">XPlmi_Init</a> (void)</td></tr>
<tr class="memdesc:ga0a5441022583a43e3fc046059c9e7469"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function will initialize the PLMI module.  <a href="group__xilplmi__server__apis.html#ga0a5441022583a43e3fc046059c9e7469">More...</a><br/></td></tr>
<tr class="separator:ga0a5441022583a43e3fc046059c9e7469"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac7d9401e9180244111edb141932b0d37"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#gac7d9401e9180244111edb141932b0d37">XPlmi_RunTimeConfigInit</a> (void)</td></tr>
<tr class="memdesc:gac7d9401e9180244111edb141932b0d37"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function initializes the Runtime Configuration Area with default values.  <a href="group__xilplmi__server__apis.html#gac7d9401e9180244111edb141932b0d37">More...</a><br/></td></tr>
<tr class="separator:gac7d9401e9180244111edb141932b0d37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga096c3ab59b174d7abd84700c70debaa7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#ga096c3ab59b174d7abd84700c70debaa7">XPlmi_LpdInit</a> (void)</td></tr>
<tr class="memdesc:ga096c3ab59b174d7abd84700c70debaa7"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function calls all the PS LPD init functions of all the different modules.  <a href="group__xilplmi__server__apis.html#ga096c3ab59b174d7abd84700c70debaa7">More...</a><br/></td></tr>
<tr class="separator:ga096c3ab59b174d7abd84700c70debaa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabc6c22a6abbfe15fb3d908c81b0941dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#gabc6c22a6abbfe15fb3d908c81b0941dc">XPlmi_PrintPlmBanner</a> (void)</td></tr>
<tr class="memdesc:gabc6c22a6abbfe15fb3d908c81b0941dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function prints PLM banner.  <a href="group__xilplmi__server__apis.html#gabc6c22a6abbfe15fb3d908c81b0941dc">More...</a><br/></td></tr>
<tr class="separator:gabc6c22a6abbfe15fb3d908c81b0941dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6787ab6388dd1d5d6d188fb4f2292bef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#ga6787ab6388dd1d5d6d188fb4f2292bef">XPlmi_ResetLpdInitialized</a> (void)</td></tr>
<tr class="memdesc:ga6787ab6388dd1d5d6d188fb4f2292bef"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function resets LpdInitialized variable to 0.  <a href="group__xilplmi__server__apis.html#ga6787ab6388dd1d5d6d188fb4f2292bef">More...</a><br/></td></tr>
<tr class="separator:ga6787ab6388dd1d5d6d188fb4f2292bef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4eb444b49ce4a70d9cda587bddafada9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#ga4eb444b49ce4a70d9cda587bddafada9">XPlmi_SetLpdInitialized</a> (u32 Flag)</td></tr>
<tr class="memdesc:ga4eb444b49ce4a70d9cda587bddafada9"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets LpdInitialized variable with given flag.  <a href="group__xilplmi__server__apis.html#ga4eb444b49ce4a70d9cda587bddafada9">More...</a><br/></td></tr>
<tr class="separator:ga4eb444b49ce4a70d9cda587bddafada9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabd3b47e48133fb2e51358b8f476f8cf1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#gabd3b47e48133fb2e51358b8f476f8cf1">XPlmi_UnSetLpdInitialized</a> (u32 Flag)</td></tr>
<tr class="memdesc:gabd3b47e48133fb2e51358b8f476f8cf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function clears LpdInitialized variable with given flag.  <a href="group__xilplmi__server__apis.html#gabd3b47e48133fb2e51358b8f476f8cf1">More...</a><br/></td></tr>
<tr class="separator:gabd3b47e48133fb2e51358b8f476f8cf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga25e99e120ef0c34fb5f96b37ab03539d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#ga25e99e120ef0c34fb5f96b37ab03539d">XPlmi_UpdateKatStatus</a> (u32 PlmKatStatus)</td></tr>
<tr class="memdesc:ga25e99e120ef0c34fb5f96b37ab03539d"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets XPLMI_RTCFG_PLM_KAT_ADDR with PlmKatStatus.  <a href="group__xilplmi__server__apis.html#ga25e99e120ef0c34fb5f96b37ab03539d">More...</a><br/></td></tr>
<tr class="separator:ga25e99e120ef0c34fb5f96b37ab03539d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8de52017af72f81c5525e900a5e95855"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#ga8de52017af72f81c5525e900a5e95855">XPlmi_GetKatStatus</a> (void)</td></tr>
<tr class="memdesc:ga8de52017af72f81c5525e900a5e95855"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is called to get KAT status.  <a href="group__xilplmi__server__apis.html#ga8de52017af72f81c5525e900a5e95855">More...</a><br/></td></tr>
<tr class="separator:ga8de52017af72f81c5525e900a5e95855"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga23c31adbc077352c74d251c2c164b0ab"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#ga23c31adbc077352c74d251c2c164b0ab">XPlmi_SetKatMask</a> (u32 PlmKatMask)</td></tr>
<tr class="memdesc:ga23c31adbc077352c74d251c2c164b0ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets XPLMI_RTCFG_PLM_KAT_ADDR with PlmKatMask.  <a href="group__xilplmi__server__apis.html#ga23c31adbc077352c74d251c2c164b0ab">More...</a><br/></td></tr>
<tr class="separator:ga23c31adbc077352c74d251c2c164b0ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga68e1f74e26153655b8f85fc892396843"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#ga68e1f74e26153655b8f85fc892396843">XPlmi_ClearKatMask</a> (u32 PlmKatMask)</td></tr>
<tr class="memdesc:ga68e1f74e26153655b8f85fc892396843"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function clears XPLMI_RTCFG_PLM_KAT_ADDR with PlmKatMask.  <a href="group__xilplmi__server__apis.html#ga68e1f74e26153655b8f85fc892396843">More...</a><br/></td></tr>
<tr class="separator:ga68e1f74e26153655b8f85fc892396843"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae6c21cf5cfaf66b61df763e6f926e908"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xilplmi__server__apis.html#gae6c21cf5cfaf66b61df763e6f926e908">XPlmi_IsCryptoKatEn</a> (void)</td></tr>
<tr class="memdesc:gae6c21cf5cfaf66b61df763e6f926e908"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function will return the crypto kat enable status from efuse cache.  <a href="group__xilplmi__server__apis.html#gae6c21cf5cfaf66b61df763e6f926e908">More...</a><br/></td></tr>
<tr class="separator:gae6c21cf5cfaf66b61df763e6f926e908"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
